﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="RetrieveStaffMenu.aspx.cs" Inherits="HotelManagement.RetrieveStaffMenu1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <title>Simple Accordion</title>  
    <style type="text/css">  
        .accordion {  
            text-align: center;
        }  
          
        .accordionHeader {  
            border: 1px solid #2F4F4F;  
            color: white;  
            background-color: #2E4d7B;  
            font-family: Arial, Sans-Serif;  
            font-size: 12px;  
            font-weight: bold;  
            padding: 5px;  
            margin-top: 5px;  
            cursor: pointer;  
        }  
          
        .accordionHeaderSelected {  
            border: 1px solid #2F4F4F;  
            color: white;  
            background-color: #5078B3;  
            font-family: Arial, Sans-Serif;  
            font-size: 12px;  
            font-weight: bold;  
            padding: 5px;  
            margin-top: 5px;  
            cursor: pointer;  
        }  
          
        .accordionContent {  
            background-color: #D3DEEF;  
            border: 1px dashed #2F4F4F;  
            border-top: none;  
            padding: 5px;  
            padding-top: 10px;  
        }  
        .style28
        {
            width: 100%;
        }
        .style29
        {
            width: 51px;
        }
        .style30
        {
            width: 250px;
        }
        </style>  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
 <div>
    
        <h2>
            &nbsp;</h2>
        <h2>
            &nbsp;&nbsp;
            Retrieve Staff Menu&nbsp;&nbsp;&nbsp; 
            <asp:Label ID="lblStatus" 
                runat="server" ForeColor="Red"></asp:Label>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        </h2>
        <table class="style28">
            <tr>
                <td class="style30">
                    &nbsp;</td>
                <td>
                 
   <ajaxToolkit:Accordion ID="Accordion1" runat="server" 
            ContentCssClass="accordionContent" CssClass="accordion" 
            HeaderCssClass="accordionHeader" 
            HeaderSelectedCssClass="accordionHeaderSelected" Width="710px" 
            Height="336px">
 
        <Panes>
        <ajaxToolkit:AccordionPane ID="AccordionPane1" runat="server" Width="600px">
         <Header>Retrieve Staff By Name</Header>  
        <Content>  
         <br /> <br />
        <asp:ListBox ID="listBoxRetrieveByName" runat="server" Height="82px" 
                            Width="200px"></asp:ListBox>
                        <ajaxToolkit:ListSearchExtender ID="ListBoxRetrieveByName_ListSearchExtender" 
                            runat="server" Enabled="True" TargetControlID="ListBoxRetrieveByName">
                        </ajaxToolkit:ListSearchExtender>
                  <br />
                        <br />
                        <asp:Button ID="btnRetrieveStaffByName" runat="server" BackColor="#F2E291" 
                            onclick="btnRetrieveStaffByName_Click" Text="Retrieve Staff By Name" 
                            Width="250px" Height="35px" />
                      

        </Content>
        </ajaxToolkit:AccordionPane>

        <ajaxToolkit:AccordionPane ID="AccordionPane2" runat="server">
        <Header>Retrieve Staff By ID</Header>  
        <Content>  
         <br /> <br />
           <asp:ListBox ID="listBoxRetrieveByID" runat="server" Height="82px" Width="200px"></asp:ListBox>
                <ajaxToolkit:ListSearchExtender ID="ListBoxRetrieveByID_ListSearchExtender" runat="server" Enabled="True" TargetControlID="ListBoxRetrieveByID">
                </ajaxToolkit:ListSearchExtender>
                 <br /> <br />
                 <asp:Button ID="btnRetrieveStaffByID" runat="server" BackColor="#F2E291" 
                            onclick="btnRetrieveStaffByID_Click" Text="Retrieve Staff By ID" 
                            Width="250px" Height="35px" />

        </Content>
        </ajaxToolkit:AccordionPane>
       
        <ajaxToolkit:AccordionPane ID="AccordionPane3" runat="server">
         <Header>Retrieve Staff by Duty Type</Header>  
        <Content>  
         <asp:DropDownList 
                ID="ddlDutyType" runat="server" Height="21px" Width="200px">
                <asp:ListItem>All</asp:ListItem>
                <asp:ListItem Value="General Maintenance"></asp:ListItem>
                <asp:ListItem Value="Room Maintenance"></asp:ListItem>
                <asp:ListItem Value="Estate Maintenance"></asp:ListItem>
                <asp:ListItem Value="Security Maintenance"></asp:ListItem>
            </asp:DropDownList>
            &nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnRetrieveStaffByDutyTypes" runat="server" BackColor="#F2E291" 
                            onclick="btnRetrieveStaffByDutyTypes_Click" Text="Retrive Staff By Duty Types" 
                            Width="250px" Height="35px" />
             <br /> <br />

        </Content>
        </ajaxToolkit:AccordionPane>
        </Panes>
               </ajaxToolkit:Accordion>
                <br /> <br />

                <asp:GridView ID="GridView1" runat="server" CellPadding="4" 
                    EnableSortingAndPagingCallbacks="True" ForeColor="#333333" GridLines="None" 
                    Height="69px" style="margin-left: 5px" Width="740px">
                    <RowStyle BackColor="#F7F6F3" BorderColor="CornflowerBlue" ForeColor="#333333" 
                        Height="30px" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="StaffID" 
                            DataNavigateUrlFormatString="RetrieveStaff.aspx?StaffID={0}" 
                            HeaderText="Action" Text="View Details" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                        Height="25px" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    <EmptyDataTemplate>
                        No Records Available
                    </EmptyDataTemplate>
                </asp:GridView>

      </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style30">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
  
    </div>
   
         <br />
 

    <table class="style28">
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td>
               
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;</td>
            <td>
     <asp:Button ID="btnGoBackToStaffMenu" runat="server" BackColor="#F2E291" 
                            onclick="btnGoBackToStaffMenu_Click" Text="Go Back To Staff Menu" 
                            Width="250px" Height="35px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <br />
    </div>
</asp:Content>
